﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SDL3;

namespace 飞机大战.core
{
    internal abstract class ObjectScreen : Scene
    {
        protected SDL.FPoint screen_position_ = new SDL.FPoint(); // 显示在屏幕上的物体坐标

        protected bool is_dead = false; // 判断该物体是否需要清理了

        protected Game game = Game.GetInstance();

        public bool Is_dead { get { return is_dead; } set { is_dead = value; } }

        public SDL.FPoint Screen_position_ { get { return screen_position_; } set { screen_position_ = value;  } }

        public override abstract void Clean();
        public override abstract void HandleEvents(SDL.Event event_);
        public override abstract void Init();
        public override abstract void Render();
        public override abstract void Update(float dt);
    }
}
